package com.atguigu.lease.web.app.service;

import com.atguigu.lease.model.entity.ViewAppointment;
import com.atguigu.lease.web.app.vo.appointment.AppointmentDetailVo;
import com.atguigu.lease.web.app.vo.appointment.AppointmentItemVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @description 针对表【view_appointment(预约看房信息表)】的数据库操作Service
*/
public interface ViewAppointmentService extends IService<ViewAppointment> {

    /**
     * 查询个人预约看房列表
     * @param userId
     * @return
     */
    List<AppointmentItemVo> listItemByUserId(Long userId);

    /**
     * 根据ID查询预约详情信息
     * @param id
     * @return
     */
    AppointmentDetailVo getDetailById(Long id);
}
